import request from '@/utils/request'

//获取库角色
export function getLibraryRoleList(data) {
	return request({
		method: 'get',
		url: 'tbNetRole/queryList',
		params: data
	})
}

//新增库角色
export function addedLibraryRole(data) {
	return request({
		method: 'post',
		url: 'tbNetRole/add',
		data
	})
}

//修改库角色
export function updateLibraryRole(data) {
	return request({
		method: 'post',
		url: 'tbNetRole/update',
		data
	})
}

//删除库角色
export function deleteLibraryRole(id) {
	return request({
		method: 'get',
		url: 'tbNetRole/delete/' + id
	})
}

//查看库角色详情
export function queryLibraryRole(id) {
	return request({
		method: 'get',
		url: 'tbNetRole/query/' + id
	})
}